package Lesson;

import java.io.FileOutputStream;
import java.io.OutputStream;

public class OutStreamTest {
    public static void main(String[] args) {
        OutputStream out = null;
        try {
            out = new FileOutputStream("1.txt",true);
            out.write("\n国庆快乐".getBytes());
        }catch (Exception e){
            e.printStackTrace();
        }finally {
            try {
                out.close();
            }catch (Exception e){
                e.printStackTrace();
            }
        }
    }
}
